<%-- 
    Document   : quotation_newitemqty
    Created on : Jan 16, 2009, 11:36:38 AM
    Author     : hp02
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<table>
    <tr>
        <td class="menucon">
            <html:link action="/quotation_getquotations.do" title="Go to main.">Quotations</html:link>
        </td>
    </tr>
</table>   
<html:messages id="messages" property="customMessage" message="true">
    <div class="heading4"><bean:write name="messages" filter="false"/></div>
</html:messages>
<html:errors/>
<html:messages id="messages" property="message" message="true">
    <ul>
        <li><bean:write name="messages" filter="false"/></li>
    </ul>
</html:messages>
<html:form action="/quotation_newadditem.do?step=set" method="post">
<html:hidden property="produk" value="${product.id}"/>
<table>
    <tr>
        <td>Code</td>
        <td>:</td>
        <td>${product.kode}</td>
    </tr>
    <tr>
        <td>Name</td>
        <td>:</td>
        <td>${product.nama}</td>
    </tr>
    <tr>
        <td>Weight</td>
        <td>:</td>
        <td><f:formatNumber type="number" value="${product.weight}" minFractionDigits="2"/> ${product.hargaHpp.unit.nama}</td>
    </tr>
    <tr>
        <td>Type</td>
        <td>:</td>
        <td>${product.hargaHpp.jenis.nama}</td>
    </tr>
    <tr>
        <td>StockLI</td>
        <td>:</td>
        <td><f:formatNumber type="number" value="${product.stockLI}" maxFractionDigits="0"/></td>
    </tr>
    <tr>
        <td>StockLE</td>
        <td>:</td>
        <td><f:formatNumber type="number" value="${product.stockLE}" maxFractionDigits="0"/></td>
    </tr>
    <tr>
        <td>Price</td>
        <td>:</td>
        <td><f:formatNumber type="currency" currencySymbol="Rp " maxFractionDigits="0" value="${product.hargaHpp.harga * product.weight}"/></td>
    </tr>
    <tr>
        <td>Quantity</td>
        <td>:</td>
        <td><html:text property="jumlah"/></td>
    </tr>
    <tr>
        <td colspan="3">
            <html:submit value="Add Now"/>
        </td>
    </tr>
</table>
</html:form>
<table>
    <tr>
        <td class="menucon">
            <html:link action="/quotation_getquotation.do?id=${idQuotation}">Cancel</html:link>
        </td>
        <td class="menucon">
            <html:link href="javascript:history.back();">Back</html:link>
        </td>
    </tr>
</table>